%h2 Create A New Setting

= error_messages_for :setting
- form_remote_for @setting, |
  :url => popup_create_bucket_settings_url(@bucket), |
  :update => { :success => '#all-settings-wrapper', :failure => '#errors' }, |
  :failure => '$("#errors").show().effect("pulsate", { times: 2 }, 500);', |
  :complete => "$.facebox.close();" do |f| |

  = render :partial => 'setting_fields', :locals => { :f => f }
  = f.submit('Create setting', :class => 'button')
